package com.example.springbootexperiment02.custom;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;


@Slf4j
public class EventNotice extends ApplicationEvent {
    private final String message;

    public EventNotice(String message) {
        super(message);
        this.message = message;

        log.info("添加自定义事件：message->{}",message);
    }

    public String getMessage() {
        return message;
    }
}